-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Package Init - Generate tests for .executable, .tool #8995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Package Init - Generate tests for .executable, .tool #8995
Conversation
Keeping this in draft until #8993 is merged, at which point some of the swift testing utilities inlined in the InitTests.swift file can be removed or ported to Sources/_InternalTestSupport/SwiftTesting+Helpers.swift which is introduced in that PR. |
aa77289
to
b42fdf1
Compare
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand this is a draft, but we need to also migrate all the custom XCT
helpers.
@swift-ci please test |
@swift-ci test windows |
@swift-ci test linux |
@swift-ci test windows |
Generate tests for the `.executable` and `.tool` template types when generating a new package with `swift package init Issue: swiftlang#8990
33998c2
to
d4968ab
Compare
@swift-ci test |
@swift-ci test |
Motivation:
Generate tests for the
.executable
and.tool
template types when generating a new package withswift package init
Modifications:
Add test targets to these types, and generate the templated test code. Also converts over the InitTests to swift-testing and uses parameterized tests to test the different types all produce tests as expected.
Issue: #8990